import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/ant.js'
//导入NProgress进度条
import NProgress from 'nprogress'
import 'nprogress/nprogress.css'
import Videojs from 'video.js'
import 'video.js/dist/video-js.css'
Vue.prototype.$video = Videojs
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

router.beforeEach((to,from,next) => {
  NProgress.start()//第一行
  next()
})

router.afterEach((to) => {
  to.path
  NProgress.done()//最后一样
})
